package com.leadingsoft.pwxk.converter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.FsinfoTablewrzlssDto;
import com.leadingsoft.pwxk.model.FsinfoTablewrzlss;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class FsinfoTablewrzlssConverter extends AbstractConverter<FsinfoTablewrzlss, FsinfoTablewrzlssDto> {

	@Autowired
	private FsinfoTableCxssConverter fsinfoTableCxssConverter;

	@Override
	protected FsinfoTablewrzlssDto toDtoActual(FsinfoTablewrzlss model) {

		FsinfoTablewrzlssDto dto = new FsinfoTablewrzlssDto();
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());
		dto.setFswrzlssid(model.getFswrzlssid());
		dto.setIsbestnameb(model.getIsbestnameb());
		dto.setSpecialissecretname(model.getSpecialissecretname());
		dto.setWrzlcontentb(model.getWrzlcontentb());
		dto.setWrzlnameb(model.getWrzlgynameb());
		dto.setWrzlnameb(model.getWrzlnameb());
		dto.setXkwrzlcodeb(model.getXkwrzlcodeb());
		dto.setFsinfoTableCxss(fsinfoTableCxssConverter.toDto(model.getFsinfoTableCxss()));
		return dto;
	}

	@Override
	public void copyProperties(FsinfoTablewrzlss model, FsinfoTablewrzlssDto dto) {

	}

}
